{extend name="$index_style_layout" /}

<!--SEO相关-->
{block name="head_title"}{$info.title}{/block}
{block name="head_keword"}{$info.keywords?:$info.title}  {$s_info.name} {/block}
{block name="head_description"}{:get_word(del_html($info['content']),300)}{/block}

{block name="body_ExtraHead"}
<style>
    .main.welcome .box .box_cen .box_r .map_address .item.item10 {
        display: none;
    }
</style>
{/block}

{block name="body_AllScorllSlide"}
<!--通栏横幅图片__STATIC__/css/qb_ui.css中控制图片宽度百分百高度行内样式设置，如不设置不小于100px---->
<div class="abanner banner">
    {qb:tag name="cms_show_common_banner" type="image"}

    {empty name="picurl"}
    <img src="__STATIC__/qy_dd/web/img/news_banner.jpg?v=v11" alt="" class="img">
    {else /}
    <div class="qb_ui_AllscrollBanner">
        <a href="{$url}"><img src="{$picurl}"></a>
    </div>
    {/empty}

    {/qb:tag}
    <div class="text_box w1280">
        <div class="en">NEWS DETAIL</div>
        <div class="cn">{$s_info.name}</div>
        <div class="down"></div>
    </div>
</div>
{/block}

{block name="body_content"}
<div class="main news" style="padding: 0;">
    <div class="news_box">
        <div class="news_detail_box w1280 wow fadeInUp">
            <div class="db">
                <div class="detail_tit">
                    <div class="t">{$info.title}</div>
                    <div class="msg">
                        日期：{:date("Y-m-d",$info.create_time)}
                        <span class="ico">查看数： {$info.view}</span>
                        <span class="ico" onclick="add_fav({$id})">点击收藏</span>
                    </div>
                </div>
                <div class="detail_con">
                    <div class="detail_text">
                        {$info.content}

                        <!-- 组图 -->
                        {volist name="$info.picurls" id="rs"}
                        {php}if(strstr($info['content'],$rs['picurl']))continue;{/php}
                        <br>
                        <center><img src="{$rs.picurl}"></center>
                        <br>
                        {/volist}

                        {notempty name="$info.mv_url"}
                        <!-- 视频模型 -->
                        <br>
                        <center>{:fun('Player@play',$info['mv_url'][0]['url']?:$info['mv_url'],800,600)}</center>
                        {/notempty}
                    </div>
                    <!--显示自定义字段内容 field="picurl,title,content,keywords" 就是过滤掉不在里边重复显示的字段-->
                    <style type="text/css">.OtherInfos .SideBox {
                        clear: both;
                    }

                    .OtherInfos img {
                        height: 100px;
                        float: left;
                        margin: 3px;
                    }</style>
                    <div class="detail_text OtherInfos">
                        {qb:showpage field="picurl,title,content,keywords,mv_url,myfid"}
                        <div class="SideBox">
                            {if in_array($rs['type'],['images','images2','image','file','files','files2'])}
                            <!-- 组图及多文件的显示方法\template\index_style\default\index\common\field.htm,其实不建议放在这里,影响布局,更多请查阅 http://help.php168.com/665693/  -->
                            <div class="tag"><span>{$rs.title}</span></div>
                            {include file="index@common/field" /}
                            {else /}
                            <div class="tag"><span>{$rs.title}</span></div>
                            <div class="cont">{$rs.value}</div>
                            {/if}
                        </div>
                        {/qb:showpage}
                    </div>
                </div>

                {php}$info_fid = $info['fid'];{/php}
                <div class="detail_bot">
                    <div class="detail_l">
                        <p>上一篇：{:fun('content@prev',$info,100,'list')}</p>
                        <p>下一篇：{:fun('content@next',$info,100,'list')}</p>
                    </div>
                    <a href="{:urls('cms/content/index',"fid=$info_fid")}" class="return">
                        <div class="txt">返回</div>
                        <div class="ico">
                            <img src="__STATIC__/qy_dd/web/img/return2.png?v=v11" alt="">
                        </div>
                    </a>
                </div>
                <div class="detail_bot">
                    <!--引用评论碎片-->
                    {qb:comment name="commentpc01" rows='5'}
                    {include file="content/comment_pc" /}
                    {/qb:comment}
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layer.photos({
        photos: '.ShowContent .cnt',
        anim: 0, //0-6的选择 动画类型
    });
</script>

<script type="text/javascript">
    function add_fav(id) {
        var url = "{:purl('fav/api/add')}?type={:config('system_dirname')}&id=" + id;
        $.get(url, function (res) {
            if (res.code == 0) {
                layer.msg('收藏成功');
            } else {
                layer.alert(res.msg);
            }
        })
    }
</script>

<!-- 微动态自动收录用户感兴趣的主题,时间60代表用户停留60秒将自动收藏 -->
{:fun('sns@fav',$info,60,'系统帮你订阅了本主题,下次本主题有回复,将会通知你')}

{/block}